package com.useeinfo.oa.modules.inspection.entity;

import com.useeinfo.framework.extend.entity.SuperClassEntity;
import com.useeinfo.oa.modules.base.entity.Enterprise;
import com.useeinfo.oa.modules.security.entity.SystemUser;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @auther: bin.liu
 * @Date: 2019/1/11 14:10
 * @Description: 巡检工单关注信息
 */
@Entity
@Table(name = "inspection_focus")
public class InspectionFocus extends SuperClassEntity<InspectionFocus> {

    /**
     * 当前企业
     */
    @ManyToOne
    @JoinColumn(name = "enterprise_id")
    private Enterprise enterprise;

    /**
     * 关联巡检工单
     */
    @ManyToOne
    @JoinColumn(name = "inspection_order_id")
    private InspectionOrder inspectionOrder;

    /**
     * 当前登录人员
     */
    @ManyToOne
    @JoinColumn(name = "system_user_id")
    private SystemUser systemUser;

    public Enterprise getEnterprise() {
        return enterprise;
    }

    public void setEnterprise(Enterprise enterprise) {
        this.enterprise = enterprise;
    }

    public InspectionOrder getInspectionOrder() {
        return inspectionOrder;
    }

    public void setInspectionOrder(InspectionOrder inspectionOrder) {
        this.inspectionOrder = inspectionOrder;
    }

    public SystemUser getSystemUser() {
        return systemUser;
    }

    public void setSystemUser(SystemUser systemUser) {
        this.systemUser = systemUser;
    }
}
